Package-level declarations

Types

Link copied to clipboard

This is the base class for all types of transactions. Each transaction is assigned to one account and has an amount that adds to, or subtracts from the value of the account. Each transaction can also have an associated set of 'tags'. Tags are arbitrary key-value pairs of String objects. Typically a transaction will have two sides 1) a "parent" transaction, and 2) one or more "split" transactions. The value of the parent transaction is defined by the sum of the values of the split transactions (possibly adjusted by the rate of each of the split transactions).

Link copied to clipboard

The base account class. All types of accounts will subclass this object. This object maintains a list of sub-accounts, as well as the standard attributes associated with an account (name, type, currency, start balance, etc)

Link copied to clipboard

AccountBook is the overall container for a data file in Moneydance. It contains references to all transactions, accounts, currencies, securities, budgets, etc.

Link copied to clipboard
abstract class AccountBookListener

Listener for events related to an AccountBook data set

Link copied to clipboard
class AccountIterator @JvmOverloads constructor(book: AccountBook?, ancestorAccount: Account? = null) : Iterator<Account>

Iterator used to scan a set of accounts.

Link copied to clipboard
interface AccountListener

Interface implemented by objects that want to receive notifications when an account is modified.

Link copied to clipboard

Miscellaneous functions

Link copied to clipboard
abstract class AcctFilter

Represents a filter for account objects

Link copied to clipboard

Container for the set of address entries in Moneydance.

Link copied to clipboard

Created by sreilly - 01/08/2014 15:01

Link copied to clipboard

Represents a search through a set of transactions where the search criteria is a combination of several searches.

Link copied to clipboard
class AvailableSharesTracker(var lastDateInt: Int, var availableShares: Long)

A class that tracks the number of available shares as of a given date, for a particular security. As the date changes, the number of available shares is adjusted for any splits.

Link copied to clipboard
class Balances
Link copied to clipboard

Represents one item in a budget

Link copied to clipboard

Represents one item in a budget

Link copied to clipboard

For one specific category, holds all the budget information (actual vs. budgeted). Since the user can enter multiple budget items per category, holds the list of all budget items for a single category. Amounts are stored in terms of the given category's currency

Link copied to clipboard
class BudgetItemList @JvmOverloads constructor(val budget: Budget, itemList: List<BudgetItem> = budget.allItems) : Iterable<BudgetItem>

this contains a list of budget items associated with a budget and is used to perform calculations and interactions with the items of the list without having to query the main data model for every budget-specific interaction.

Link copied to clipboard

Container for the budgets in a data file

Link copied to clipboard
interface BudgetListener
Link copied to clipboard

Represents the date range on which the budget calculations are based upon.

Link copied to clipboard
class CapitalGainBuy(_account: Account, val dateInt: Int, val totalAmount: Long, val sharesPurchased: Long) : Comparable<CapitalGainBuy>

Tracks a buy transaction for capital gain calculations, particularly average cost with long term and short term gains. Per U.S. IRS Publication 564, single-category average cost allocates to the earliest shares acquired first:

Link copied to clipboard
class CapitalGainResult @JvmOverloads constructor(val secAcct: Account?, val asOfDateInt: Int?, val selectedDateRange: DateRange?, val totSaleShares: Long, val totSaleSharesShort: Long, val totSaleSharesLong: Long, val totSaleSharesAvailable: Long, val totSaleSharesAvailableShort: Long, val totSaleSharesAvailableLong: Long, val totSaleValue: Long, val totSaleValueShort: Long, val totSaleValueLong: Long, val totSaleBasis: Long, val totSaleBasisShort: Long, val totSaleBasisLong: Long, val totSaleGains: Long, val totSaleGainsShort: Long, val totSaleGainsLong: Long, val isValid: Boolean, val isSimpleResult: Boolean, val isCompleteResult: Boolean, val txn: SplitTxn?, val errorMessageKey: String?, val useTaxDate: Boolean = false, val selectSalesByTaxDate: Boolean = false)

Tracks the result of a capital gain computation, including both short term and long term gains. The class is immutable. Updated by Stuart Beesley February 2024 - since MD2024(5100) to allow a more 'complete' set of values to be stored along with the updated CostCalculation class. WARNING: Check isValid() before using results. If not valid then you should assume zeros and no gain calculation!

Link copied to clipboard

Represents the check number popup settings for an account, data file, or global preferences

Link copied to clipboard

Created by sreilly - 2014.05.05 12:14

Link copied to clipboard

Defines the various types of security instruments that can be assigned to a security. Securities may have sub-types as well. The ordinal values are fixed to the original integers mapped to security type, as previously defined in Account:

Link copied to clipboard
class CostCalculation @JvmOverloads constructor(val secAccount: Account, asOfDate: Int? = null, preparedTxns: TxnSet? = null, obtainCurrentBalanceToo: Boolean = false, val unRealizedSaleTxn: SplitTxn? = null, val useTaxDate: Boolean = false)

Class rewritten/fixed by Stuart Beesley February 2024 - since MD2024(5100)

Link copied to clipboard
data class CurrencyAmount(val currency: CurrencyType, val amount: Long)
Link copied to clipboard
Link copied to clipboard
abstract class CurrencySearch

Represents a filter for matching and displaying matched currency objects

Link copied to clipboard

Created by sreilly - 03/08/2014 07:31

Link copied to clipboard

Created by sreilly - 03/08/2014 07:46

Link copied to clipboard

A table containing the set of currencies in a moneydance data set

Link copied to clipboard

A structure that represents a single type of currency, identified by the three digit currency code. A stock or security in Moneydance is represented as a currency as it is a unit of value that is relative to some other value (ie the base currency)

Link copied to clipboard

Miscellaneous currency functions (mostly conversion).

Link copied to clipboard
open class DateRange
Link copied to clipboard
data class DateRangePeriodParameters(val periodOffset: Int = 0, val periodMultiplier: Int = 1)

Representation of parameters that can be applied to a DateRangeOption, in order to shift the start date and multiply the number of periods in certain selections.

Link copied to clipboard

Date range unit: A unit of date ranges, that can be used to specify the basic units behind some DateRanges

Link copied to clipboard
class DateReminderPair(var date: Int, var reminder: Reminder) : Comparable<DateReminderPair>
Link copied to clipboard
class GenericTxnSearch @JvmOverloads constructor(field: GenericTxnSearch.Field, value: String, checkBothSides: Boolean, dateFormat: CustomDateFormat, decimalChar: Char = defaultLocaleDecimalChar) : TxnSearch

A GenericTxnSearch class specifies a TxnSearch that matches against either specific transaction fields or against all fields. Investment transaction action field added MD2024(5100)

Link copied to clipboard

Search for investment transactions based on their investment action

Link copied to clipboard

InvestField objects know how to extract the relevant fields from investment transactions so that they can be more easily edited and displayed.

Link copied to clipboard

Defines the various types of investment transactions.

Link copied to clipboard
object InvestUtil

Miscellaneous investment functions

Link copied to clipboard
class IRR @JvmOverloads constructor(val cashFlows: List<ROICashFlowEntry>?, val allowAllZerosCashFlows: Boolean = false, var title: String? = null, val currency: CurrencyType? = null, val account: Account? = null)

Internal Rate of Return (IRR) calculation engine, along with useful IRR functions.

Link copied to clipboard
abstract class Legacy

Created by sreilly - 7/27/14 1:01 PM

Link copied to clipboard

A TxnTagSet keeps track of the set of TxnTags that are associated with an AbstractTxn.

Link copied to clipboard

LoanFields objects know how to extract the relevant fields from loan payment transactions so that they can be more easily edited, displayed and analyzed.

Link copied to clipboard
abstract class LocalStorage(var book: AccountBook, val folderStorage: SyncStorage) : SyncRecord, SyncStorage

Created by sreilly - 01/08/2014 09:27

Link copied to clipboard
interface MDFileListener

A listener interface that can be registered for callbacks when the state of a file (saved, unsaved, etc) changes.

Link copied to clipboard

Class representing the different types of attachment files that Moneydance knows about

Link copied to clipboard

An interface for objects that want to be notified when MemorizedReportInfo objects are added, removed or modified.

Link copied to clipboard
open class MoneydanceSyncableItem(var book: AccountBook) : SyncableItem
Link copied to clipboard

NetWorthCalculator objects will calculate the net worth of the specified data file. The calculation can observe or ignore account-specific flags for whether they should be included in net worth calculations. All methods that return a TotalAmount instance, return a duplicated copy of TotalAmount. NetWorthCalculator's internal TotalAmount instance cannot be directly changed by the caller. (Except netWorthBalances: its getBalance() / getBalances() return the stored TotalAmount objects - do not change them.)

Link copied to clipboard

This class includes information that describes an online account. Information such as routing number, account number, account type, etc.

Link copied to clipboard
class OnlineAccountMapping(book: AccountBook, onlineService: OnlineService?)

OnlineAccountMapping matches online accounts to their local counterpart, and vice versa.

Link copied to clipboard

This interface serves as an abstraction for the information associated with a local account.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

This class maintains information about the online connections, logins, and financial institutions that we can connect to.

Link copied to clipboard
Link copied to clipboard

Simple mail object that describes mails that are stored in the users mail list on the online banking server.

Link copied to clipboard

This class contains a set of mails that are used for online bill-mail.

Link copied to clipboard

Simple payee object that describes payees that are stored in the users payee list on the online banking server.

Link copied to clipboard
Link copied to clipboard

This class contains a set of payees that are used for online bill-payment.

Link copied to clipboard
Link copied to clipboard

Simple payment object that describes payments that are stored in the users payment list on the online banking server.

Link copied to clipboard

This class contains a set of payments that are used for online bill-payment.

Link copied to clipboard
Link copied to clipboard

This class describes one online service to which Moneydance can connect. This is generally mean to mean a direct OFX service.

Link copied to clipboard
class OnlineServiceLink(val onlineServiceID: String, val accountID: String, account: Account)

Represents this account's identity within an online service. Calling getBankingServices() yields a list of identities that this account has with an online banking service.

Link copied to clipboard
open class OnlineTxn @JvmOverloads constructor(val table: SyncRecord = SyncRecord()) : OnlinePayeeInterface, OnlineBankAcctToInterface, OnlineCCAcctToInterface

Simple transaction object that holds transactions that are downloaded from a bank, before the transactions can be committed to the local database.

Link copied to clipboard

This class contains a set of transactions that are used for online banking and bill-payment.

Link copied to clipboard
Link copied to clipboard

Concrete class that represents the "source" side of a transaction. Valid transactions of this type are associated with one or more destination (or split) transactions. The value of transactions of this type are the sum of the values of all of the associated splits.

Link copied to clipboard
class PaymentSchedule(account: Account?)

Created by sreilly - 7/27/14 5:44 PM

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Identify the type of action that should be applied to transactions, especially reminders, to account for a different exchange rate or security price at some point in time.

Link copied to clipboard

Object that contains information about one reconciliation of an account on a given date and time. This should contain metadata about the starting and ending cleared balances, the account that was reconciled, the transactions involved in the reconciliation, etc.

Link copied to clipboard

Reminder represents an item (usually a note or transaction) that can be scheduled to occur on a specific date or recurring series of dates.

Link copied to clipboard

An interface for objects that want to be notified when reminders in the ReminderSet are added, removed, or modified.

Link copied to clipboard
class ReminderSet(val accountBook: AccountBook)

A set of Reminder objects that occur according to some (possibly recurring) schedule

Link copied to clipboard

ReportSpec contains all the information for a configured report or graph: the identifier for the kind of report, any configured date range or other parameters. It also contains a flag indicating whether the ReportSpec represents a memorized report or graph, and if so, the name assigned by the user.

Link copied to clipboard
Link copied to clipboard

Manager for memorized reports and graphs, provides notifications when changes are made. This class also consolidates code that was scattered in several user interface classes. This class has a reference to the root account object and the root account also has a reference to this class to delegate tasks to it.

Link copied to clipboard
class ROICashFlowEntry(val dateInt: Int, val longValue: Long, val investCurr: CurrencyType, startDateInt: Int, val txnType: String? = null, val source: MoneydanceSyncableItem? = null) : Comparable<ROICashFlowEntry>

Represents a single cash flow entry used in Internal Rate of Return (IRR), or Return on Investment (ROI) calculations.

Link copied to clipboard
class SecurityComparator(useTaxDate: Boolean) : Comparator<Txn>

A Txn comparator which compares investment transactions by their securities

Link copied to clipboard

Defines the various types of security instruments that can be assigned to a security. Securities may have sub-types as well. The ordinal values are fixed to the original integers mapped to security type, as previously defined in Account:

Link copied to clipboard
abstract class SimpleTxnSearch : TxnSearch

Simple abstract implementation of TxnSearch that allows for simple definition of a TxnSearch using a single (lambda-able) method

Link copied to clipboard
class SplitTxn(var parentTxn: ParentTxn) : AbstractTxn

Concrete class that represents the destination side of a transaction. The destination side of the transaction is associated with exactly one source (or parent) transactions. The amount of a SplitTxn is stored in terms of the currency of the account for the associated ParentTxn.

Link copied to clipboard
class TotalAmount @JvmOverloads constructor(var currency: CurrencyType, var amount: Long = 0)

A simple wrapper that is used to hold amounts of a give currency when totaling values of potentially different currencies.

Link copied to clipboard

An interface for objects that want to be notified when transactions in the TransactionSet are added, removed, or modified.

Link copied to clipboard

The set of transactions that are associated with a data file or RootAccount

Link copied to clipboard
interface Txn
Link copied to clipboard
interface TxnFilter

Objects of this type define which transactions are a part of any given set.

Link copied to clipboard
class TxnIterator @JvmOverloads constructor(txns: TransactionSet, filter: TxnSearch? = null) : MutableIterator<Txn>

A TxnIterator is an iterator that scans both sides of all transactions, treating split transactions as N*2 transactions where N is the number of SplitTxns associated with the ParentTxn. This iterator should be used for all reporting tasks as it scans Txns in their most generic form.

Link copied to clipboard
interface TxnSearch

Represents a search through a set of transactions. This uses the Txn interface for transactions which represents each side of a SplitTxn - the parent and the 'other' (usually category) side which is better for generating reports.

Link copied to clipboard
class TxnSet @JvmOverloads constructor(txnList: Collection<AbstractTxn>? = null) : Iterable<AbstractTxn>

An unsynchronized (unlike Vector) storage for AbstractTxn objects.

Link copied to clipboard
class TxnSorter
Link copied to clipboard

Copyright (C) 2019 The Infinite Kind, Limited Created by sreilly - 2019-08-09 14:02

Link copied to clipboard
object TxnUtil
Link copied to clipboard

UndoableChange uses the Moneydance sync system to record the before and after state of objects, providing an easy mechanism for undo-ing and redo-ing changes to a set of objects. To use, create an UndoableChange object, and record any deletions with finishDeletion(objectToDelete), creations with finishModification(newObject), and modifications with beginModification(object) before the object is changed and finishModification(object) after. Then record the change with the undo manager's recordChange(change).

Link copied to clipboard

An UndoManagerInterface can be provided on platforms that support undo/redo operations to rollback or reapply changes. This provides those functions for moneydance syncable objects which already have a natural pre- and post-change state representation.

Properties

Link copied to clipboard

Returns the value of the Txn in terms of a non-security currency. For example, if this is for the security split of an investment transaction, then it will return the value of the buy/sell/short/cover in terms of the investment account's currency instead of the number of shares.